package cn.billy.controller;

import cn.billy.domain.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserServerController {

    @GetMapping("/springboot/{id}")
      public User getById(@PathVariable Long id){
          return new User (id,"李某");
      }
}
